<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 

<%String path = request.getContextPath();%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
    <link href="<%=path %>/css/index.css" type="text/css" rel="stylesheet" />
    <link href="<%=path %>/css/base.css" type="text/css" rel="stylesheet" />
    
    <style type="text/css">
		.c1-bline{border-bottom:#999 1px dashed;border-top:1px;}
		.f-right{float:right}
		.f-left{float:left}
		.clear{clear:both}
	</style>
	

    <script type="text/javascript">
            function back1()
	        {
	           var url="<%=path %>/myCart.action";
	           window.location.href=url;
	        }
	        
	        function dd()
	        {
	            var odderFukuangfangshi=document.f.odderFukuangfangshi.value;
	            //alert(odderFukuangfangshi);
	            if(odderFukuangfangshi=="银行付款")
	            {
	                 document.getElementById("qufukuan").style.display="block";
	            }
	            if(odderFukuangfangshi=="货到付款")
	            {
	                 document.getElementById("qufukuan").style.display="none";
	            }
	        }
	        
	        function kahao()
	        {
	            var strUrl = "<%=path %>/qiantai/order/kahao.jsp";
				var ret = window.showModalDialog(strUrl,"","dialogWidth:700px; dialogHeight:500px; dialogLeft: status:no; directories:yes;scrollbars:yes;Resizable=no;");
	        }
	</script>
	
	
</head>
  
<body>
	<div class="banner">
        <jsp:include flush="true" page="/qiantai/top.jsp"></jsp:include>
	</div>


    <div class="main01" style="margin-top: 10px;">
        <div class="goods">
        	  <form action="<%=path %>/orderSubmit.action" name="f" method="post">
		                        <table width="99%" border="0" cellpadding="4" cellspacing="4" bgcolor="#FFFFFF" align="left" style="margin-top:8px">
					              <tr align='left' bgcolor="#FFFFFF" height="45">
					                  <td width="96" align="right">收货人帐号：</td>
					                  <td align="left">
					                      <input type="text" name="userName" readonly="readonly" value="<s:property value="#session.user.userName"/>" style="width: 288px;"/>
					                  </td>
					              </tr>
					              <tr align='left' bgcolor="#FFFFFF" height="45">
					                  <td width="96" align="right">收货人姓名：</td>
					                  <td align="left">
					                      <input type="text" name="userRealname" value="<s:property value="#session.user.userRealname"/>" style="width: 288px;"/>
					                  </td>
					              </tr>
					              <tr align='left' bgcolor="#FFFFFF" height="45">
					                  <td width="96" align="right">收货人联系电话：</td>
					                  <td align="left">
					                      <input type="text" name="userTel" value="<s:property value="#session.user.userTel"/>" style="width: 288px;"/>
					                  </td>
					              </tr>
					              <tr align='left' bgcolor="#FFFFFF" height="45">
					                  <td width="96" align="right">送货地址：</td>
					                  <td align="left"><input type="text" name="songhuodizhi" value="<s:property value="#session.user.userAddress"/>" style="width: 408px;"/></td>
					              </tr>
					              <tr align='left' bgcolor="#FFFFFF" height="45">
					                  <td width="96" align="right">付款方式：</td>
					                  <td align="left">
		   		                          <select name="fukuanfangshi" style="width:293px;" onchange="dd()">
		   		                               <option value="货到付款">货到付款</option>
		   		                               <option value="银行付款">银行付款</option>
		   		                          </select>
		   		                          <!-- <input type="button" onclick="kahao()" id="qufukuan" style="display: none" value="查看卡号"/> -->
		                              </td>
					              </tr>
					              <tr align='left' bgcolor="#FFFFFF" height="45">
					                  <td width="96" align="right">&nbsp;</td>
					                  <td align="left">
					                       <input type="button" value="返回修改" onclick="back1()" style="width: 130px;"/>
					                       <input type="button" value="提交订单" onclick="javascript:document.f.submit();" style="width: 130px;"/>
		                              </td>
					              </tr>
		        				</table>
				        </form> 
        </div>
    </div>
    
    
    <br/>
    <div class="bottom" style="position:absolute;bottom:0px;">
        <jsp:include flush="true" page="/qiantai/down.jsp"></jsp:include>
    </div>
</body>
</html>
